<?php
class DefaultController extends CController {
	public $breadcrumbs = array ();

	public function actions() {
		return array (
			'quote' => array (
				'class' => 'CWebServiceAction',
				
			),
			
		);
	}
	public function actionIndex() {
		$this->render('index');
	}

	/**
	* @param string the symbol of the stock
	* @return float the stock price
	* @soap
	*/
	public function getPrice($symbol) {
		$prices = array (
			'IBM' => 100,
			'GOOGLE' => 350
		);
		return isset ($prices[$symbol]) ? $prices[$symbol] : 0;
	}
}